package com.jnevision.sysconfig.service;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jnevision.sysconfig.mapper.ConfigMapper;
import com.jnevision.sysconfig.model.Config;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author gavin
 * @since 2019-07-14
 */
@Service
public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, Config> {
    public String getValue(String name) {
        return this.baseMapper.selectOne(new QueryWrapper<Config>().eq("name", name)).getValue();
    }
}
